import React from 'react';
// import { Button } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Home from '../Home';
import ButomTabs from '../ButomTabs';
import AddImpWork from '../../components/AddImpWork';
import DetailImpWork from '../../components/DetailImpWork';
import TaskPlan from '../TaskPlan';
import Ready from '../Ready';
import AddPlan from '../../components/AddPlan';
import Perform from '../Perform';
import Acceptance from '../Acceptance';
import Complete from '../Complete';
import Detail from '../../components/CompleteView/components/Detail';
import AddNoteBook from '../../components/NoteView/components/AddNoteBook';
import NoteBookView from '../../components/NoteBookView';
import AddNote from '../../components/AddNote';
import RecycleBin from '../../components/WorkbenchView/components/RecycleBin';
import AccReport from '../../components/WorkbenchView/components/AccReport';
import AccRpDetail from '../../components/WorkbenchView/components/AccReport/AccRpDetail';
import MineLog from '../MineLog';
import AddLog from '../MineLog/components/AddLog';

const Stack = createNativeStackNavigator();

const Beiwang = () => (
    <NavigationContainer>
        <Stack.Navigator>
            <Stack.Screen
                name="Tab"
                component={ButomTabs}
                options={{
                    headerTitle: '高效备忘录',
                    headerTitleStyle: {
                        color: '#0079FF',
                    },
                }}
            />
            <Stack.Screen
                name="开始"
                component={Home}
                options={{ headerTitle: '高效备忘录' }}
            />
            <Stack.Screen name="添加事务" component={AddImpWork} />
            <Stack.Screen name="事务详情" component={DetailImpWork} />
            <Stack.Screen
                name="任务计划区"
                component={TaskPlan}
                options={{
                    headerTitleStyle: {
                        color: '#0079FF',
                        fontSize: 22,
                    },
                }}
            />
            <Stack.Screen
                name="任务就绪区"
                component={Ready}
                options={{
                    headerTitleStyle: {
                        color: '#0079FF',
                        fontSize: 22,
                    },
                }}
            />
            <Stack.Screen
                name="任务执行区"
                component={Perform}
                options={{
                    headerTitleStyle: {
                        color: '#0079FF',
                        fontSize: 22,
                    },
                }}
            />
            <Stack.Screen
                name="任务验收区"
                component={Acceptance}
                options={{
                    headerTitleStyle: {
                        color: '#0079FF',
                        fontSize: 22,
                    },
                }}
            />
            <Stack.Screen
                name="任务完成区"
                component={Complete}
                options={{
                    headerTitleStyle: {
                        color: '#5DC778',
                        fontSize: 22,
                    },
                }}
            />
            <Stack.Screen name="事务完成详情" component={Detail} />
            <Stack.Screen name="创建笔记本" component={AddNoteBook} />
            <Stack.Screen name="笔记本" component={NoteBookView} />
            <Stack.Screen name="添加笔记" component={AddNote} />
            <Stack.Screen name="添加计划" component={AddPlan} />
            <Stack.Screen name="回收站" component={RecycleBin} />
            <Stack.Screen name="验收报告" component={AccReport} />
            <Stack.Screen name="报告详情" component={AccRpDetail} />
            <Stack.Screen name="日志" component={MineLog} />
            <Stack.Screen name="添加日志" component={AddLog} />
        </Stack.Navigator>
    </NavigationContainer>
);

export default Beiwang;
